#ifndef _SERVER_SERVER_H
#define _SERVER_SERVER_H

#include <netinet/in.h>

#include "config.h"
#include "client.h"

typedef struct _Server_t {
	Config_t * config;
	int fd;
	struct sockaddr_in addr;
	Client_t * clients;
} Server_t;

/* server.c */
Server_t *server_create( Config_t *config );
void server_run( Server_t * server );
void server_run_client( Server_t * server, int clientfd );
#endif
